package com.wages.project.system.wages.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wages.framework.aspectj.lang.annotation.Excel;
import com.wages.framework.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 工资信息对象 wages
 *
 * @author wages
 * @date 2021-02-08
 */
public class Wages extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    private Long uid;

    /** 信息有效性 */
    private String status;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal monkey;

    /** 时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 金额对应信息 */
    @Excel(name = "金额对应信息")
    private String msg;

    public String getWtype() {
        return wtype;
    }

    public void setWtype(String wtype) {
        this.wtype = wtype;
    }

    @Excel(name = "类型")
    private String wtype;
    private String isok;

    public String getIsok() {
        return isok;
    }

    public void setIsok(String isok) {
        this.isok = isok;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUid(Long uid)
    {
        this.uid = uid;
    }

    public Long getUid()
    {
        return uid;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setMonkey(BigDecimal monkey)
    {
        this.monkey = monkey;
    }

    public BigDecimal getMonkey()
    {
        return monkey;
    }
    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }
    public void setMsg(String msg)
    {
        this.msg = msg;
    }

    public String getMsg()
    {
        return msg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("status", getStatus())
            .append("monkey", getMonkey())
            .append("time", getTime())
            .append("msg", getMsg())
                .append("wtype", getWtype())
                .append("isok", getIsok())
            .toString();
    }
}
